package com.neuedu.carsystem.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.carsystem.dao.JobDao;
import com.neuedu.carsystem.model.Job;
import com.neuedu.carsystem.service.JobService;
@Service
public class JobServiceImpl implements JobService{
	@Autowired 
	public JobDao jobDao;

	@Override
	public List<Job> findJobAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return jobDao.findJobAll(map);
	}

	@Override
	public Job findById(int id) {
		// TODO Auto-generated method stub
		return jobDao.findById(id);
	}

	@Override
	public int addJob(Job u) {
		// TODO Auto-generated method stub
		return jobDao.addJob(u);
	}

	@Override
	public int deleteJob(int id) {
		// TODO Auto-generated method stub
		return jobDao.deleteJob(id);
	}

	@Override
	public int updateJob(int u) {
		// TODO Auto-generated method stub
		return jobDao.updateJob(u);
	}

	@Override
	public int countJob() {
		// TODO Auto-generated method stub
		return jobDao.countJob();
	}
	

}
